package com.wen.es.domain;

import com.wen.es.annotation.EsTypeAnno;
import com.wen.es.utils.EsConstants;

import java.util.Date;
import java.util.List;

/**
 * 子类型
 * Created by LAIO on 2018/6/30.
 */
@EsTypeAnno(propertyName = "child_type",
        type = EsConstants.TYPE_CHILD,
        refer = ParentType.class)
public class ChildType {

    @EsTypeAnno(propertyName = "key", id = true)
    private String key;

    @EsTypeAnno(
            propertyName = "string01",
            index = EsConstants.INDEX_ANALYZED)
    private String string01;
    @EsTypeAnno(
            propertyName = "string02",
            index = EsConstants.INDEX_ANALYZED)
    private String string02;
    @EsTypeAnno(
            propertyName = "string03",
            index = EsConstants.INDEX_ANALYZED)
    private String string03;
    @EsTypeAnno(
            propertyName = "string04",
            index = EsConstants.INDEX_ANALYZED)
    private String string04;
    @EsTypeAnno(
            propertyName = "string05",
            index = EsConstants.INDEX_ANALYZED)
    private String string05;
    @EsTypeAnno(
            propertyName = "long01",
            type = EsConstants.TYPE_LONG)
    private Long long01;
    @EsTypeAnno(
            propertyName = "long02",
            type = EsConstants.TYPE_LONG)
    private Long long02;
    @EsTypeAnno(
            propertyName = "long03",
            type = EsConstants.TYPE_LONG)
    private Long long03;
    @EsTypeAnno(
            propertyName = "long04",
            type = EsConstants.TYPE_LONG)
    private Long long04;
    @EsTypeAnno(
            propertyName = "long05",
            type = EsConstants.TYPE_LONG)
    private Long long05;
    @EsTypeAnno(
            propertyName = "double01",
            type = EsConstants.TYPE_DOUBLE)
    private Double double01;
    @EsTypeAnno(
            propertyName = "double02",
            type = EsConstants.TYPE_DOUBLE)
    private Double double02;
    @EsTypeAnno(
            propertyName = "double03",
            type = EsConstants.TYPE_DOUBLE)
    private Double double03;
    @EsTypeAnno(
            propertyName = "double04",
            type = EsConstants.TYPE_DOUBLE)
    private Double double04;
    @EsTypeAnno(
            propertyName = "double05",
            type = EsConstants.TYPE_DOUBLE)
    private Double double05;
    @EsTypeAnno(
            propertyName = "date01",
            type = EsConstants.TYPE_DATE)
    private Date date01;
    @EsTypeAnno(
            propertyName = "date02",
            type = EsConstants.TYPE_DATE)
    private Date date02;
    @EsTypeAnno(
            propertyName = "date03",
            type = EsConstants.TYPE_DATE)
    private Date date03;
    @EsTypeAnno(
            propertyName = "date04",
            type = EsConstants.TYPE_DATE)
    private Date date04;
    @EsTypeAnno(
            propertyName = "date05",
            type = EsConstants.TYPE_DATE)
    private Date date05;

    @EsTypeAnno(
            propertyName = "nested_list",
            type = EsConstants.TYPE_NESTED,
            refer = NestedType.class)
    private List<NestedType> nestedList;

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public String getString01() {
        return string01;
    }

    public void setString01(String string01) {
        this.string01 = string01;
    }

    public String getString02() {
        return string02;
    }

    public void setString02(String string02) {
        this.string02 = string02;
    }

    public String getString03() {
        return string03;
    }

    public void setString03(String string03) {
        this.string03 = string03;
    }

    public String getString04() {
        return string04;
    }

    public void setString04(String string04) {
        this.string04 = string04;
    }

    public String getString05() {
        return string05;
    }

    public void setString05(String string05) {
        this.string05 = string05;
    }

    public Long getLong01() {
        return long01;
    }

    public void setLong01(Long long01) {
        this.long01 = long01;
    }

    public Long getLong02() {
        return long02;
    }

    public void setLong02(Long long02) {
        this.long02 = long02;
    }

    public Long getLong03() {
        return long03;
    }

    public void setLong03(Long long03) {
        this.long03 = long03;
    }

    public Long getLong04() {
        return long04;
    }

    public void setLong04(Long long04) {
        this.long04 = long04;
    }

    public Long getLong05() {
        return long05;
    }

    public void setLong05(Long long05) {
        this.long05 = long05;
    }

    public Double getDouble01() {
        return double01;
    }

    public void setDouble01(Double double01) {
        this.double01 = double01;
    }

    public Double getDouble02() {
        return double02;
    }

    public void setDouble02(Double double02) {
        this.double02 = double02;
    }

    public Double getDouble03() {
        return double03;
    }

    public void setDouble03(Double double03) {
        this.double03 = double03;
    }

    public Double getDouble04() {
        return double04;
    }

    public void setDouble04(Double double04) {
        this.double04 = double04;
    }

    public Double getDouble05() {
        return double05;
    }

    public void setDouble05(Double double05) {
        this.double05 = double05;
    }

    public Date getDate01() {
        return date01;
    }

    public void setDate01(Date date01) {
        this.date01 = date01;
    }

    public Date getDate02() {
        return date02;
    }

    public void setDate02(Date date02) {
        this.date02 = date02;
    }

    public Date getDate03() {
        return date03;
    }

    public void setDate03(Date date03) {
        this.date03 = date03;
    }

    public Date getDate04() {
        return date04;
    }

    public void setDate04(Date date04) {
        this.date04 = date04;
    }

    public Date getDate05() {
        return date05;
    }

    public void setDate05(Date date05) {
        this.date05 = date05;
    }

    public List<NestedType> getNestedList() {
        return nestedList;
    }

    public void setNestedList(List<NestedType> nestedList) {
        this.nestedList = nestedList;
    }

}
